﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Volunteer
{
    public partial class PasswordRec : System.Web.UI.Page
    {
        private DBConn dbConn = new DBConn();
        string[] strUserInfo = new string[4];

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        //protected void pwdRec_VerifyingUser(object sender, LoginCancelEventArgs e)
        //{
        //    //try to retrieve UserInfo from db
        //    try
        //    {
        //        strUserInfo = dbConn.RetrieveUser(pwdRec.UserName);
        //        if (strUserInfo[0].Equals(string.Empty))
        //            e.Cancel = true;
        //    }
        //    catch (Exception ex)
        //    {
        //        e.Cancel = true;
        //        throw ex;
        //    }
        //}

        //protected void pwdRec_VerifyingAnswer(object sender, LoginCancelEventArgs e)
        //{
        //    //once we have user info retrieved from db
        //    //it's time to populate next step of password retrieval
        //    //SMTP client needs to be set up to make that password retrieval work
        //    //not a chance to do that now
        //    pwdRec.UserName = strUserInfo[0];

        //}
    }
}
